﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Business.Common;
using Business.FlowOperation;

public partial class frmMainNew : PageBase
{
    /// <summary>
    /// 待办项数
    /// </summary>
    protected string WaitWorkCount { get; set; }

    protected void Page_Load(object sender, EventArgs e)
    {
        IsTabShow = false;
        if (!IsPostBack)
        {
            if (!string.IsNullOrEmpty(UserName))
            {
                //获取设置标题头
                string strMsg = "<script>function initWinInfo(){";
                //设置待办件的地址
                strMsg += "addTab(strFirstUrl,strFirstUrlName);";

                strMsg += string.Format("loadTitle('divCenter','业务办公区【欢迎您，{0}，今天是{1}】');HideLoading();", UserName, DateTime.Now.ToShortDateString());

                //获取待接收短消息
                string strPopContent = "<table>";
                strPopContent += string.Format("<tr><td><a href=javascript:addTab('MyWindow/TaskInStepList.aspx','接收即时消息')>您有{0}条待办</a></td></tr>", 1);
                strPopContent += "</table>";
                strMsg += string.Format("loadMsg(\"{0}\");", strPopContent);

                //针对
                strMsg += "}</script>";

                Response.Write(strMsg); 
            }
        }
    }
}
